package com.qingmeng.apiclientsdk.model.Request;

import com.qingmeng.apiclientsdk.model.Response.ResultResponse;
import lombok.experimental.Accessors;

/**
 * @Author: WPF
 * @DateTime: 2025/01/04 13:59
 * @Version: 1.0
 * @Description: 通用请求
 */
@Accessors(chain = true)
public class GeneralRequest extends BaseRequest<Object, ResultResponse> {
    private String method;
    private String path;

    /**
     * get方法
     *
     * @return {@link String}
     */
    @Override
    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    /**
     * 获取路径
     *
     * @return {@link String}
     */
    @Override
    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    /**
     * 获取响应类
     *
     * @return {@link Class}<{@link ResultResponse}>
     */
    @Override
    public Class<ResultResponse> getResponseClass() {
        return ResultResponse.class;
    }
}
